-- GENERATED SPELL FOR [Barbed Crawler] --


function spell0_17217(pUnit, Event) --@Thorns,n/a--
pUnit:FullCastSpellOnTarget(31271,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17217', 567, 1)
end

function Sorts_17217(pUnit, Event)
local choix_sorts_17217 = math.random(0, 0)
if choix_sorts_17217 == 0 then
pUnit:RegisterEvent('spell0_17217', 1, 1)
end
end

function mob17217_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17217', math.random(1500, 3000), 1)
end

function mob17217_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17217_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17217_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17217, 1, 'mob17217_Action')
RegisterUnitEvent(17217, 2, 'mob17217_Leave')
RegisterUnitEvent(17217, 3, 'mob17217_Kill')
RegisterUnitEvent(17217, 4, 'mob17217_Die')
